package org.exercise7.cmd.order;


/**
 * @author Stranger
 * @version 1.0
 * @description: TODO
 * @date 2022/11/28 20:25
 */
public class SubOrder implements Order {

    private int target;

    public SubOrder(int target) {
        this.target = target;
    }

    @Override
    public int invoke(int num) {
        return num - this.target;
    }

}
